<h1>
        <span class="action-span1">
		<a href="javascript:void(0);">道具管理</a>---<a href="javascript:void(0);">商品列表</a>
	</span>
	<div style="clear:both"></div>
</h1>

<div class="form-div">
    <form action="./index.php" method="get">
  	<input type="hidden" name="c" value="props">
  	<input type="hidden" name="a" value="propsList">
    <img src="./public/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />    
     商品名称 <input type="text" name="title" size="15" value="<?=$title?>" />
  <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>

<!-- 用户列表 -->

  <!-- start user list -->
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>ID</th>
    <th>商品名称</th>
    <th>价格</th>
    <th>货币类型</th>
    <th>商品描述</th>
    <th>打折力度</th>
    <th>排序值</th>
    <th>创建时间</th>
    <th>是否置顶</th>
    <th>是否上架</th>
    <th>状态</th>
    <th>操作</th>
  </tr>
  <?php if($commodityList):foreach ($commodityList as $v ):?>
  <tr class="" style='text-align:center;'>
    <td><?=$v['id'];?></td>
    <td><?=$v['title']?></td>
    <td><?=$v['price']?></td>
    <td><?php if(1 == $v['pType']):echo "游戏币";endif;?>
        <?php if(2 == $v['pType']):echo "人民币";endif;?>
        <?php if(3 == $v['pType']):echo "筹码";endif;?>
    </td>
    <td><?=$v['descripe']?></td>
    <td><?=$v['discount']?>折</td>
    <td><?=$v['rander']?></td>
    <td><?=date("Y-m-d H:i:s",$v['ctime']);?></td>
    <td>
        <?php if( 1!=$v['stick']):?>
        置顶
        <?php else: echo "未置顶！"; endif; ?>
    </td>
    <td>
        <?php if( 0 ==$v['state']):?>
        普通状态
        <?php elseif( 1 ==$v['state']): echo '下架';?>
        <?php elseif(2 ==$v['state']): echo "上架！"; endif; ?>
    </td>
    <td>
        <?php if( 1==$v['isDel']):?>
        已删除
        <?php else: echo "正常！"; endif; ?>
    </td>
    <td>
        <?php if( 1!=$v['isDel']):?>
        <a href="/index.php?c=props&a=commodityEdit&commodityID=<?=$v['id'];?>" >修改</a>|
        <a href="/index.php?c=props&a=commodityDel&commodityID=<?=$v['id'];?>" > 删除</a>
        <?php else: echo "已删除！"; endif; ?></td>
 </tr>
  <?php endforeach;endif;?>
  </table>
<!-- end goods list -->

<!-- 分页 -->
<?php if($page){?>
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true"><?=$page?></td>
  </tr>
</table>
<?php }?>
</div>